package com.dandelion.manager.system.repository;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.dandelion.commons.repository.BaseMapper;
import com.dandelion.manager.system.domain.Resource;

public interface ResourceMapper extends BaseMapper<Resource> {
	
	List<Resource> selectResourceListByMenuId(@Param("menuId") Long menuId);
    
    List<Resource> selectResourceListByMenuIdView(@Param("menuId") Long menuId);
    
    List<Resource> selectResourceListByPid(@Param("pid") Long pid);
    
    List<Resource> selectResourceTreeByMenuId(@Param("menuId") Long menuId);
    
    Resource selectByHref(String href) ;
    
    int nextSort(@Param("pid") Long pid, @Param("menuId") Long menuId);
    
    Resource getResourceLinkPermit(Long resourceId);
    
    List<Resource> treegridByMenuLinkPermit(@Param("menuId") Long menuId);
	
}